<?php
if (!(isset($_GET["acordeon"]))) {
    $this->breadcrumbs = array(
        $model->label(2) => array('index'),
        GxHtml::valueEx($model),
    );
}
$this->menu = array(
    array('label' => Yii::t('app', 'Listar') . ' ' . $model->label(2), 'url' => array('index')),
    array('label' => Yii::t('app', 'Crear') . ' ' . $model->label(), 'url' => array('create')),
    array('label' => Yii::t('app', 'Editar') . ' ' . $model->label(), 'url' => array('update', 'id' => $model->ENCID)),
    array('label' => Yii::t('app', 'Eliminar') . ' ' . $model->label(), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->ENCID), 'confirm' => 'Are you sure you want to delete this item?')),
    array('label' => Yii::t('app', 'Administrar') . ' ' . $model->label(2), 'url' => array('admin')),
);
?>

<h1><?php echo Yii::t('app', 'Ver') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model)); ?></h1>

<?php
$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
        'ENCID',
        'ENCNOMBRE',
        'ENCFECHACREACION',
        'ENCFECHAACTUALIZACION',
        'ENCVERSION',
        'ENCFECHAINICIAL',
        'ENCFECHAFINAL',
        array(
            'name' => 'nCLB',
            'type' => 'raw',
            'value' => $model->nCLB !== null ? GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->nCLB)), array('nucleosbasicos/view', 'id' => GxActiveRecord::extractPkValue($model->nCLB, true))) : null,
        ),
    ),
));
?>
<script type="text/javascript">
<?php if ((isset($_GET["acordeon"]))) { ?>
        $(document).ready(function(){
            ajustaIframeyDiv(<?php echo $_GET["acordeon"]; ?>);
        }); //fin $(document).ready(function(){
<?php } ?>
</script>